package com.appspot.bibtable.servlet;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class BookmarkItemServletBase extends PathQueryHttpServlet
{
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
	{
		doAction(request, response);
		response.sendRedirect(request.getRequestURI());
	}

	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
	{
		doAction(request, response);
	}
	
	protected abstract void doAction(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
